package com.djz.tool.exception.handler;

import com.djz.tool.exception.base.BaseException;
import com.djz.tool.wrapper.ResponseWrapper;
import org.springframework.http.ResponseEntity;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 交易异常统一处理
 * @author djz
 */
public interface ExceptionHandler<B extends BaseException> {

    ResponseEntity<ResponseWrapper<Void>> handleException(HttpServletRequest request, HttpServletResponse response, Exception exception);

}
